package com.module2;

//上网套餐类 特征：上网流量、每月资费 行为：显示所有套餐信息
//继承抽象套餐类和网络服务接口
public class Q3_InternetPlan extends Q3_AbstractPlan implements Q3_InternetService{
    double internetData;
    Q3_PhoneCard phone =new  Q3_PhoneCard();
    public Q3_InternetPlan(){
        System.out.println("调用Q3_InternetPlan上网套餐类");
    }
    @Override
    public void show(){
        System.out.println("网络流量为："+internetData +" 月花销为："+ monthCost);
    }

    @Override
    public void internet(double internetData,Q3_PhoneCard phoneCard) {
        System.out.println("重写了Q3_InternetService接口中的internet方法");
    }
}
